Skip to content

feat/independent loggers for components - #204

Merged
aarmoa merged 3 commits into
devfrom
feat/independent_loggers_for_components
May 19, 2023
Merged

feat/independent loggers for components#204
aarmoa merged 3 commits into
devfrom
feat/independent_loggers_for_components

Conversation

@aarmoa

@aarmoa aarmoa commented May 18, 2023

Copy link
Copy Markdown
Contributor

Changed the logging logic in the SDK to use independent loggers for each module and class.
The logic to correctly get the loggers was implemented in the class LoggerProvider to have it in a single place.
All places where the SDK was logging were updated to use the new LoggerProvider.
The PR includes unit tests to validate the logs format. For that the package tests was created.

There are two new development dependencies added to support the implementation and execution of the unit tests:

  • pytest
  • pytest-asyncio
    The new dependencies were added as dev dependencies to not require them when the SDK is installed as a package.

Created a new package called utils to start moving all utility modules there. Right now the utils module has been moved there. The new logger module has been created in there too.

…le and class. Added unit tests to verify the change in all the places that currently log information
@aarmoa
aarmoa requested a review from achilleas-kal May 18, 2023 15:34
@aarmoa
aarmoa merged commit 0f23864 into dev May 19, 2023
@aarmoa
aarmoa deleted the feat/independent_loggers_for_components branch May 19, 2023 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants